import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import KxQaTimesBarChart from "./index";

const meta = {
  title: "柱状图/可信质量检查次数柱状图-KxQaTimesBarChart",
  component: KxQaTimesBarChart,
  tags: ["autodocs"],
  argTypes: {},
  decorators: [
    (Story) => (
      <div
        style={{ backgroundColor: "#06112B", height: "469px", width: "453px" }}
      >
        <Story />
      </div>
    ),
  ],
} satisfies Meta<typeof KxQaTimesBarChart>;

export default meta;
type Story = StoryObj<typeof meta>;

export const basic: Story = {
  args: {
    dataSource: [
      {
        name: "马銮湾保障房地铁社区二期A01~03地块",
        routeAmount: 80,
        regularAmount: 220,
        dailyAmount: 190,
      },
      {
        name: "马銮湾保障房地铁社区二期A04~07地块",
        routeAmount: 160,
        regularAmount: 220,
        dailyAmount: 420,
      },
      {
        name: "保障性住房龙泉公寓一期",
        routeAmount: 70,
        regularAmount: 120,
        dailyAmount: 240,
      },
      {
        name: "洪茂居住区一期",
        routeAmount: 250,
        regularAmount: 120,
        dailyAmount: 860,
      },
      {
        name: "东园保障性住房",
        routeAmount: 250,
        regularAmount: 120,
        dailyAmount: 860,
      },
    ],
  },
};
